package com.longchat.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.longchat.domain.award.Option;

public interface OptionJpaRepository extends CrudRepository<Option, Integer> {

	@Query("from Option o where o.questionnaire.id=?1")
	List<Option> findByQuestionid(Integer questionnaireId);
}
